package com.ss.android.article.base.feature.update.activity;

import android.content.DialogInterface;

import com.ss.android.article.base.feature.app.a.ArticleConstants;
import com.ss.android.article.base.feature.update.a.c;
import com.ss.android.article.base.feature.user.social.ReportActivity;
import com.ss.android.common.util.UrlBuilder;

final class q implements DialogInterface.OnClickListener {
    private final p a;

    q(p arg1) {
        this.a = arg1;
    }

    public final void onClick(DialogInterface arg7, int arg8) {
        long v4 = 0;
        switch (arg8) {
            case 0: {
                if (this.a.a == null) {
                    return;
                }

                com.bytedance.common.utility.a.a.a(g.g$d.d(this.a.b), "", this.a.a.c);
                break;
            }
            case 1: {
                g.g$d v0 = this.a.b;
                c v1 = this.a.a;
                if (v1 == null) {
                    return;
                }

                if (v1.d == null) {
                    return;
                }

                if (v1.d.userId <= v4) {
                    return;
                }

                if (v0.e.d <= v4) {
                    return;
                }

                if (v1.a <= v4) {
                    return;
                }

                UrlBuilder v2 = new UrlBuilder(ArticleConstants.feedbackWapListReportUserUrl);
                v2.addParam("user_id", v1.d.userId);
                v2.addParam("update_id", v0.e.d);
                v2.addParam("reply_id", v1.a);
                v2.addParam("source", 3);
                ReportActivity.a(v0.f, v2.build());
                break;
            }
        }
    }
}

